﻿using System;
using System.Collections.Generic;
using System.Text;

namespace phminarm.algorithm.DataProcess
{
    public class Integration
    {
        public static float[] FrequencyDomain(float[] spec, float df, float startX)
        {
            int N = spec.Length;
            float[] res = new float[N];

            for (int i = 0; i < N; i++)
            {
                float f = startX + N * df * i;
                res[i] = (float)(spec[i] / (2 * Math.PI * f));
            }

            return res;
        }

        public static float[] TimeDomain(float[] timewave, float dt)
        {
            int N = timewave.Length;


            return new float[N];
        }
    }
}
